Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Apache Reverse Proxy, Multiple unclustered Mail Servers, iwaredir.nsf as redirector
Feedback Type: Question
Product Area: iNotes - Full mode
Technical Area: Customization
Platform: Windows
Release: 8.5.2
Reproducible: Always

Goal: to have users access email from internet using iNotes.
Setup:Apache as reverse proxy, iwaredir.nsf setup for mailfile redirection
What works currently:
1) user goes to webmail.domain-name.com:8080
2) gets the login screen for authentication
3) gets authenticated to correct mail server via iwaredir redirect db

What fails:
4)URL returned from step 3 always contains internal.domain-name.com:8080/mail/mailfilename.nsf (this is incorrect because the internal servername is just internal.domain-name.com without the :8080)

I can get around this if I remove the :8080 when I am inside the network, but this ALWAYS fails from outside the network. So, I know this is not going through my proxy server.
I am also setting a MailServer cookie (AutoLogin form in iwaredir.nsf in the $$HTMLHead field. Code: @SetHTTPHeader("Set-Cookie"; "MailServer=" + lwrwmrMailServer);) to capture the mailserver and telling Apache where to go, but ALL my Apache lines of code are being ignored. I can provide my complete conf file via email upon request, but I am posting a few lines that I think are not working as they are supposed to.

My question is:
1) has anyone been able to successfully setup multiple mail servers that are not clustered to work with Apache and redirect in 8.5.2? If so, can you share your rewriterule and rewritecond directives?
Your help is appreciated in advance. Thank you!

conf file code:
<VirtualHost *:8080>
ServerName webmail.domain-name.com:8080
ServerAdmin webmaster@domain-name.com
ServerAlias webmail.domain-name.com
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"

ProxyPass / http://webmail.domain-name.com/iwaredir.nsf
ProxyPassReverse / http://webmail.domain-name.com/iwaredir.nsf

#Internal domino server 2
ProxyPass internalserver2/ http://internalserver2.domain-name.com
ProxyPassReverse internalserver2/ http://internalserver2.domain-name.com

#internal domino server 3
ProxyPass internalserver3/ http://internalserver3.domain-name.com
ProxyPassReverse internalserver3/ http://internalserver3.domain-name.com

ProxyPass internalserver2.domain-name.com:8080 http://internalserver2.domain-name.com
ProxyPassReverse internalserver2.domain-name.com:8080 http://internalserver2.domain-name.com

RewriteEngine On

#this code below never gets touched, no activity in log
#RewriteCond %{HTTP_HOST} ^webmail\.(.*)$ [NC]
RewriteRule ^(.*)$ http://internalserver2.domain-name.com$1 [P]

RewriteCond %{HTTP_COOKIE} MailServer=internalserver3 [NC]
RewriteRule ^/(.*)$ http://internalserver3.domain-name.com [P]


Feedback number WEBB8NNQGJ created by ~Ethan Ekkiplopnivu on 11/16/2011

Status: Open
Comments:

Apache Reverse Proxy, Multiple uncl... (~Ethan Ekkiplop... 16.Nov.11)
. . Iwaredir (~Manny Nontumil... 16.Nov.11)
. . . . iNotes & Apache reverse proxy (~Miriam Zenluma... 22.Nov.11)
. . . . . . My solution (~Nita Froregeno... 3.Mar.15)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS